﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FigureDraw
{
    public class myChart : myShape
    {

        public override void Draw(Target target, Paper drawPaper, PenType penType)
        {
            string path = "";
            switch (penType)
            {
                case PenType.start1:
                    path = "11.PNG";
                    break;
                case PenType.input1:
                    path = "12.PNG";
                    break;
                case PenType.process1:
                    path = "13.PNG";
                    break;
                case PenType.output1:
                    path = "14.PNG";
                    break;
                case PenType.transfer1:
                    path = "15.PNG";
                    break;
                case PenType.condition1:
                    path = "16.PNG";
                    break;
                case PenType.end1:
                    path = "17.PNG";
                    break;
            };
            

            target.DrawImage(
                drawPaper,
                oldPosition,
                curPosition,
                path);
        }

        public myChart(Vector2 _oldP, Vector2 _curP)
        {
            oldPosition = new Vector2(_oldP);
            curPosition = new Vector2(_curP);
        }
    }
}
